package cn.wolfcode.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@CrossOrigin
public class TimeController {
    @GetMapping("/getTime")
    public String getServerTime() {
        return "当前服务器时间:" + new Date().getTime();
    }
}
